package app;

import com.dinim.matrix.Matrix;
import com.dinim.matrix.threedimensional.Matrix4x4;
import com.dinim.matrix.twodimensional.Matrix3x3;


public class MatrixTester1 {

	public static void main(String[] args) throws CloneNotSupportedException {
//		Matrix3x3 matrix1 = Matrix3x3.generateStandardMatrix();
//		System.out.println(matrix1.toString());
//		
//		matrix1.multiplyByMatrix(Matrix3x3.generateScalingMatrixXY(10, 1.4347));
//		System.out.println(matrix1.toString());
//		
//		matrix1.multiplyByMatrix(Matrix3x3.generateRotationMatrix(12.854));
//		System.out.println(matrix1.toString());
//		Vector3 vec = new Vector3(40, 20);
//		System.out.println(vec.toString());
////		vec.multiplyByMatrix(Matrix3x3.generateScalingMatrixX(1.2));
////		vec.multiplyByMatrix(Matrix3x3.generateScalingMatrixY(1.3));
////		vec.multiplyByMatrix(Matrix3x3.generateScalingMatrixXY(1.2, 1.3));
//		vec.multiplyByMatrix(Matrix3x3.generateTranslationMatrixXY(10, 2));
//		System.out.println(vec.toString());
		
		Matrix m = new Matrix(5,5);
		
		m.setLine(new double[]	{1,2,54,1,1}, 	0);
		m.setLine(new double[]	{1,2,54,1,2}, 	0);
		m.setLine(new double[]	{1,2,54,1,2}, 	0);
		m.setLine(new double[]	{1,2,54,1,2}, 	0);
		m.setLine(new double[]	{1,2,54,1,2}, 	0);
		
		Matrix3x3 m1 = new Matrix3x3();
		m1.setLine(1, 2, 2, 2);
		
		Matrix4x4 m2 = (Matrix4x4) m1.clone();
		System.out.println(m1.toString());
		System.out.println(m2.toString());
		
		//m2.setLine(1, 3, 9, 1,2);
		
		
		System.out.println(m1.toString());
		System.out.println(m2.toString());
	}
}
